package com.weishuang.monitor.leader.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.weishuang.monitor.leader.commons.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 数据字典数据
 * </p>
 *
 * @author weishuang
 * @since 2021-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysDictData extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 字典编码
     */
    @TableId
    private String dictCode;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空！")
    private Integer sort;

    /**
     * 字典标签
     */
    @NotBlank(message = "标签不能为空")
    private String dictLabel;

    /**
     * 字典值
     */
    @NotBlank(message = "值不能为空！")
    private String dictValue;

    /**
     * 字典类型
     */
    @NotBlank(message = "字典类型不能为空！")
    private String dictType;

    /**
     * 字典描述
     */
    private String remark;

}
